package com.bamboo.eduorder.feign;

import com.bamboo.eduorder.entity.dto.UcenterMember;
import com.bamboo.eduorder.feign.fallback.UcenterFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author jack.wu
 */
@FeignClient(value = "service-ucenter", fallback = UcenterFeignClientFallback.class)
public interface UcenterFeignClient {

    /**
     * 根据用户id查询用户基础信息
     *
     * @param id 用户id
     * @return 用户信息
     */
    @GetMapping("/{id}")
    UcenterMember getMemberInfo(@PathVariable String id);

}
